<template>
    <div id="head">
        <div id="heads" v-for="item in s1List" @click="change($event,item.id,item.head)" :style="item.style">{{ item.head }}</div>
    </div>
  </template>
  
  <script setup>
  
  defineProps(['s1List']);
  const emits = defineEmits(['change-change']);
  const change = (e,_id,_head) => {
    emits('change-change',_id,_head);
  };
  
  </script>
  
  <style scoped>
  #head {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
  }
  #heads {
    cursor: pointer;
    flex:1 1  auto;
  }
  </style>